#ifndef _XMLPARSER_H_
#define _XMLPARSER_H


#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "CustomizedMap.h"
#include "MapList.h"
#include "..\Logger\Logger.h"
#include "..\Exceptions\parsingExcep.h"
#include "..\Exceptions\msjExcep.h"

#include <string>
#include <iostream>
#include <fstream>
#include <cstdlib>
#include <list>
#include <map>
using namespace std;

class XMLParser {

public:

	MapList types;

	CustomizedMap attributes;
	
	XMLParser();

	bool OpenFile (char* filePath, ifstream* stream);

	int XMLParse(char* filePath, list<MapList*>* xmlObject);

	int ParseKeyAndValue(string line);

	int ReadXML(ifstream* stream, list<MapList*>* xmlObjects);

	virtual ~XMLParser();

};

#endif 
